package com.kxn.multi.module.service.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kxn.multi.module.service.base.BaseEntity;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 权限表
 * </p>
 *
 * @author kxn
 * @since 2023-04-18
 */
@Getter
@Setter
@TableName("admin_permission")
@ApiModel(value = "AdminPermission对象", description = "权限表")
public class AdminPermission extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("父id")
    private Integer parentId;

    @ApiModelProperty("权限父节点路径，如：/1/3,标识父节点为3，祖先节点1")
    private String path;

    @ApiModelProperty("名称（目录、菜单或者操作等）")
    private String name;

    @ApiModelProperty("类型，1目录，2菜单，3接口，4页面元素（按钮等）")
    private Integer type;

    @ApiModelProperty("地址")
    private String url;

    @ApiModelProperty("svg图标名称")
    private String icon;

    @ApiModelProperty("是否展示，1展示，0隐藏")
    private Integer isShow;

    @ApiModelProperty("排序(正序)")
    private Integer orderNum;

    @ApiModelProperty("状态，1正常，0禁用")
    private Integer status;


}
